package com.student.db;


import androidx.annotation.NonNull;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Entity(tableName = "db_punch")
public class PunchEntity {
    @NonNull
    @PrimaryKey
    private Long id;

    private String name;
    private String roomNo;
    //0:回来  1:出去
    private int type;
    private String reason;
    private long punchTime;

    @NonNull
    public Long getId() {
        return id;
    }

    public void setId(@NonNull Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRoomNo() {
        return roomNo;
    }

    public void setRoomNo(String roomNo) {
        this.roomNo = roomNo;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public long getPunchTime() {
        return punchTime;
    }

    public void setPunchTime(long punchTime) {
        this.punchTime = punchTime;
    }
}
